import HTTP from "@/tools/http";

// 获取配置组树
export const treeList = (data) => HTTP.get("/custom/groupTree", data);
// 获取配置组列表
export const groupList = (data) => HTTP.get("/custom/groupList", data);
// 获取配置组下的配置项列表
export const settingList = (data) => HTTP.get("/custom/settingList", data);

// 修改配置项信息
export const updateUserCustomSetting = (data) => {
  return HTTP.post("/custom/updateUserCustomSetting", data);
};

export default {
  treeList,
  updateUserCustomSetting,
};